package com.lwb.ztx.bean;

import com.lwb.ztx.utils.DateUtils;

import java.io.Serializable;
import java.util.List;

/**
 * Created by luweibin on 2016/5/27.
 */
public class NewsBean implements Serializable {
    private String comments;
    private String commentsAll;
    private String commentsUrl;
    private String documentId;
    private String id;
    private String linkUrl;
    private String source;
    private String thumbnail;
    private String title;
    private String updateTime;
    private String type;
    private List<String> images;
    private String formatTime;

    private List<NewsBean> bannerBeans;

    public String getFormatTime() {
        return formatTime;
    }

    public void setFormatTime(String formatTime) {
        this.formatTime = formatTime;
    }

    public List<NewsBean> getBannerBeans() {
        return bannerBeans;
    }

    public void setBannerBeans(List<NewsBean> bannerBeans) {
        this.bannerBeans = bannerBeans;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public String getCommentsAll() {
        return commentsAll;
    }

    public void setCommentsAll(String commentsAll) {
        this.commentsAll = commentsAll;
    }

    public String getCommentsUrl() {
        return commentsUrl;
    }

    public void setCommentsUrl(String commentsUrl) {
        this.commentsUrl = commentsUrl;
    }

    public String getDocumentId() {
        return documentId;
    }

    public void setDocumentId(String documentId) {
        this.documentId = documentId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        setFormatTime(updateTime);
        this.updateTime = DateUtils.getStrTime(updateTime);
    }

    @Override
    public String toString() {
        return "NewsBean{" +
                "comments='" + comments + '\'' +
                ", commentsAll='" + commentsAll + '\'' +
                ", commentsUrl='" + commentsUrl + '\'' +
                ", documentId='" + documentId + '\'' +
                ", id='" + id + '\'' +
                ", linkUrl='" + linkUrl + '\'' +
                ", source='" + source + '\'' +
                ", thumbnail='" + thumbnail + '\'' +
                ", title='" + title + '\'' +
                ", updateTime='" + updateTime + '\'' +
                ", type='" + type + '\'' +
                ", images=" + images +
                ", formatTime='" + formatTime + '\'' +
                ", bannerBeans=" + bannerBeans +
                '}';
    }
}
